<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="principal" value="${pageContext.request.userPrincipal.principal}" />

<h3>WELCOME</h3>

<ul class="nav nav-pills nav-stacked">
    <c:if test="${empty principal}">
        <li><a href="<c:url value='/login'/>">Login</a></li>
        <%--<li><a href="<c:url value='/registration'/>">Registration</a></li>--%>
    </c:if>
    <c:if test="${not empty principal}">
        <li><a href="<c:url value='/j_spring_security_logout'/>">Logout</a></li>
    </c:if>
    <li><a href="<c:url value='/payment/list'/>">all payment list</a></li>
    <li><a href="<c:url value='/subs/list'/>">list my subscriptions</a></li>
    <li><a href="<c:url value='/list'/>">list periodicals</a></li>
    <li><a href="<c:url value='/add'/>">add periodicals</a></li>
</ul>